<?php

use app\models\SearchHistory as SearchHistoryAlias;
use yii\helpers\Url;
use yii\web\View;

/* @var $this View */

?>
<div class="footer text-center">
    <div class="announcement">本站所有漫画均来源于网络，仅提供低品质漫画在线试看，禁止下载！关于漫画的版权归原漫画作者及发行商所有。如有侵犯到您的版权，请<a href="mailto:atcaoyufei@gmail.com">联系我们</a> ，确认之后立即删除。</div>
    <div class="copyright">
        Copyright © 2019 <?= $web_name; ?>
        <div class="d-inline-block">
            <a href="<?= Url::to('sitemap.xml', TRUE); ?>">网站地图</a>
        </div>
    </div>

    <?= $this->render('link'); ?>
</div>

<div class="fixed">
    <a class="scroll-down tooltip tooltip-left" data-tooltip="转到底部" href="javascript:void(0);"><i class="icon-down"></i></a>
    <a class="ajax-modal tooltip tooltip-left" data-href="<?= Url::to(['site/message']); ?>" data-tooltip="反馈" href="javascript:void(0);"><i class="icon-email"></i></a>
    <a class="scroll-up tooltip tooltip-left" data-tooltip="返回顶部" href="javascript:void(0);"><i class="icon-up"></i></a>
</div>

<div class="search-dialog">
    <div class="container grid-xl">
        <div class="columns">
            <div class="column col-8 col-mx-auto">
                <form method="get" action="<?= Url::to(['category/']); ?>">
                    <div class="form-group">
                        <input name="wd" class="form-input form-input-search" type="text" placeholder="搜索漫画">
                    </div>
                </form>
                <h4>热搜词</h4>
                <div class="search-list">
                    <?php foreach (SearchHistoryAlias::getHistory() as $v): ?>
                    <a href="<?= Url::to(['category/', 'wd' => $v['name']]); ?>"><?= $v['name']; ?></a>
                    <?php endforeach; ?>
                </div>
            </div>
        </div>
    </div>
</div>